var images = document.querySelectorAll('.img');
var modal = document.querySelector('.feedback-content-item-showimg');
var modalImage = modal.querySelector('img');

images.forEach(function (image) {
    image.addEventListener('click', function () {
        modalImage.src = image.src;
        modal.style.display = 'flex';
    });
});

modal.addEventListener('click', function () {
    modal.style.display = 'none';
});